import request from '@/utils/request'

// 查询护理类别列表
export function listCareCategory(query) {
  return request({
    url: '/pg/careCategory/list',
    method: 'get',
    params: query
  })
}

// 查询护理类别所有列表
export function listAllCareCategory(query) {
  return request({
    url: '/pg/careCategory/listAll',
    method: 'get',
    params: query
  })
}

// 查询护理类别详细
export function getCareCategory(id) {
  return request({
    url: '/pg/careCategory/' + id,
    method: 'get'
  })
}

// 新增护理类别
export function addCareCategory(data) {
  return request({
    url: '/pg/careCategory',
    method: 'post',
    data: data
  })
}

// 修改护理类别
export function updateCareCategory(data) {
  return request({
    url: '/pg/careCategory',
    method: 'put',
    data: data
  })
}

// 删除护理类别
export function delCareCategory(id) {
  return request({
    url: '/pg/careCategory/' + id,
    method: 'delete'
  })
}
